version: '3.9'

services:
  mongo-test:
    image: mongo

    tty: true
    stdin_open: true
    restart: "unless-stopped"

    # environment:
    #   MONGO_INITDB_ROOT_USERNAME: admin
    #   MONGO_INITDB_ROOT_PASSWORD: admin
    environment:
      - MONGO_INITDB_ROOT_USERNAME=otus
      - MONGO_INITDB_ROOT_PASSWORD=otusSuperPass
    ports:
      - 27018:27017
